import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data,
  })
}

export function getAppMenus() {
  return request({
    url: '/lowcode/getDataBySql',
    method: 'post',
    data: { sqlid: '文档内容', where: `dkey='appMenuList'` },
  })
}

export function getInfo() {
  return request({
    url: '/auth/userinfo',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/erp/auth/logout',
    method: 'post',
  })
}
